package com.koron.order.common.mapper;

import com.koron.order.common.bean.po.OrderDispatchTeam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (OrderDispatchTeam)表数据库访问层
 *
 * @author makejava
 * @since 2021-09-03 15:59:47
 */
public interface OrderDispatchTeamMapper {

    OrderDispatchTeam queryById(String id);

    List<OrderDispatchTeam> queryList(OrderDispatchTeam orderDispatchTeam);

    int insert(OrderDispatchTeam orderDispatchTeam);

    int insertOrUpdate(OrderDispatchTeam orderDispatchTeam);

    int insertBatch(List<OrderDispatchTeam> orderDispatchTeams);

    int update(OrderDispatchTeam orderDispatchTeam);

    int deleteById(String id);

    int deleteByOrderId(@Param("orderId") String orderId);

    int deleteByDispatchId(@Param("dispatchId") String dispatchId);

    int deleteByDispatchIdOrderId(@Param("dispatchId") String dispatchId, @Param("orderId") String orderId);

    List<OrderDispatchTeam> queryByDispatchId(@Param("dispatchId") String dispatchId);
}